import request from '@/utils/request'

/**
 * 删除
 */
export function deleteObject(data) {
  return request({
    url: '/vueCourse/batchDelete',
    method: 'post',
    data
  })
}

/**
 * 编辑
 */
export function updateObject(data) {
  return request({
    url: '/vueCourse/update',
    method: 'post',
    data
  })
}

/**
 * 新增
 */
export function addObject(data) {
  return request({
    url: '/vueCourse/save',
    method: 'post',
    data
  })
}

/**
 * 查询所有课程信息
 */
export function getAllCourseList() {
  return request({
    url: '/vueCourse/list',
    method: 'get',
  })
}

/**
 * 分页查询
 */
export function getPageList(data) {
  return request({
    url: '/vueCourse/pagelist',
    method: 'post',
    data
  })
}
